<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理</title>

    <meta name="decorator" content="kindeditor"/>

	<s:if test="msg=='tuiguang'">
	<script type="text/javascript">
		$(function(){
			$("#post").addClass("active");
			$("#post").find("ul li").eq(2).addClass("active");
			})
	</script>
	</s:if>
	<s:elseif test="msg=='jieshao'">
	<script type="text/javascript">
		$(function(){
			$("#post").addClass("active");
			$("#post").find("ul li").eq(3).addClass("active");
			})
	</script>
	</s:elseif>
	<s:elseif test="msg=='jifen'">
	<script type="text/javascript">
		$(function(){
			$("#post").addClass("active");
			$("#post").find("ul li").eq(4).addClass("active");
			})
	</script>
	</s:elseif>
	<s:elseif test="msg=='bangzhu'">
	<script type="text/javascript">
		$(function(){
			$("#post").addClass("active");
			$("#post").find("ul li").eq(5).addClass("active");
			})
	</script>
	</s:elseif>
	<s:else>
	<script type="text/javascript">
		$(function(){
			$("#post").addClass("active");
			$("#post").find("ul li").eq(1).addClass("active");
			})
	</script>
	</s:else>
	
</head>

<body>



<div class="admin">

    <div class="panel">
  <div class="panel-head"><strong>修改文章</strong></div>
  <div class="panel-body">
  
<form action="post!update1.action" id="form" method="post" enctype="multipart/form-data" >
                <input type="hidden" name="msg" value="${msg }"/>
                <div class="form-group">
                    <div class="label"><label for="sitename">文章标题</label></div>
                    <div class="field">
                    	<input value="${post.title }" type="text" class="input" id="sitename" name="post.title" size="50" placeholder="请输入标题" data-validate="required:请输入标题" />
                    </div>
                </div>
                
                <input type="hidden" name="post.id" value="${post.id }"/>
                <input type="hidden" name="page" value="${page}"/>
                     <div class="form-group">
                    <div class="label"><label for="sitename">引文</label></div>
                    <div class="field">
                    	<textarea rows="5" class="input" name="post.yinwen" placeholder="请输入引文" data-validate="required:请输入引文">${post.yinwen }</textarea>
                    </div>
                </div>
                
                   <div class="form-group">
                    <div class="label"><label for="bianma">作者</label></div>
                    <div class="field">
                    	<input type="text" class="input" id="bianma" value="${post.writer}" name="post.writer" size="50" />
                    </div>
                </div>
            
                
                
                
                
                
                
                
                <div class="form-group">
                    <div class="label"><label for="logo">图片</label></div>
                    <div class="field">
                    	<a class="button input-file" href="javascript:void(0);">+ 浏览文件<input size="100" type="file" name="file"  /></a>
                    </div>
                </div>
                
                
                  <div class="form-group">
                    <div class="label"><label for="readme">商品描述</label></div>
                    <div class="field">
                    	<textarea name="post.content" class="input" rows="20" cols="50"  >${post.content}</textarea>
                    </div>
                </div>
                
                <button class="button bg-blue" onclick="return checkForm()">提交</button>
        </form>
  </div>
</div>
                
                
</div>


</body>
</html>